package org.extframework.ld.bean;

import java.util.HashSet;
import java.util.Set;

import org.extframework.ld.bean.model.IUser;

/**
 * @author : Dong.Li
 * @created : 2013-1-21
 * @version : 1.0
 * @description :
 */
public class Role extends Entity {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String name;
	
	private Boolean beActive = false;
	
	public Role() {
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getBeActive() {
		return beActive;
	}

	public void setBeActive(Boolean beActive) {
		this.beActive = beActive;
	}

	private Set<User> users = new HashSet<User>();
	
	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	private Set<Power> powers = new HashSet<Power>();

	public Set<Power> getPowers() {
		return powers;
	}

	public void setPowers(Set<Power> powers) {
		this.powers = powers;
	}

}
